package com.lezheba.db.entity;

import java.io.Serializable;
import java.util.Date;
 
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
 
@Entity
@Table(name="user_tb")
public class User implements Serializable{
 
    private static final long serialVersionUID = -8767337896773261247L;
    
    
    @Id 
    @Column(name="id")    
    @GeneratedValue(strategy=GenerationType.AUTO) 
    private Long id;
    
    @Column(name="username")
    private String username;
    
    @Column(name="email")
    private String email;
    
    @Column(name="password")
    private String password;

    @Column(name="create_time")
    private Date createTime = new Date();
    
    @Column(name="child_birth")
    private Date childBirth;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}



	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getChildBirth() {
		return childBirth;
	}

	public void setChildBirth(Date childBirth) {
		this.childBirth = childBirth;
	}
    
}
